package buchwald.martin;

public class NodoLleno implements Nodo{
	Object data;
	Nodo next;
	
	public NodoLleno(Object data, Nodo next){
		this.data = data;
		this.next = next;
	}
	
	public boolean isEmpty() {
		return false;
	}

	public Nodo next() {
		return this.next;
	}

	public Object getData() {
		return this.data;
	}

	public int size() {
		return 1 + this.next.size();
	}

	public Nodo add(Object data){
		this.next = this.next.add(data);
		return this;
	}
}
